package com.itheima.io.fileoutputstream.demo02;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileOutputStreamDemo02 {

    public static void main(String[] args) throws IOException {

        FileOutputStream fileOutputStream = new FileOutputStream("itheima-io-fileoutputstream\\a.text");

        for (int i = 0; i < 10; i++) {
            fileOutputStream.write((i + "---jinlintai").getBytes());
            fileOutputStream.write("\r\n".getBytes());
        }


        fileOutputStream.close();

    }
}
